package redora.client.validation;

import com.google.gwt.libideas.validation.client.validator.RegExValidator;

public class RegExpValidator extends RegExValidator {

	public RegExpValidator(String regEx) {
		super(regEx);
	}

	@Override
	public String createErrorMessage(String subjectLabel, String answer) {
		return subjectLabel + " with value:" + answer
				+ " is not match pattern:" + "\"" + regEx + "\"";
	}

}
